package com.springbootblog.utils;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data//自动创建每个属性的get/set方法
@AllArgsConstructor// 自动创建有参构造
public class CustomResponse
{
    private int status; // 状态码
    private String message; // 消息内容
    private Object data; // 返回的数据

    public CustomResponse(int status, String message) {
        this.status = status;
        this.message = message;
    }

    public CustomResponse(int status, Object data) {
        this.status = status;
        this.data = data;
    }
}
